QT       += widgets opengl gui core

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11
CONFIG -= debug_and_release

DEFINES += QT_DEPRECATED_WARNINGS

INCLUDEPATH += ../plugin/BasePlugin
INCLUDEPATH += ../common

SOURCES += \
    main.cpp \
    Application.cpp

HEADERS += \
    Application.h

LIBS += -L../lib -lCommon

#临时文件路径
OBJECTS_DIR = ../temp/obj
MOC_DIR = ../temp/moc
UI_DIR= ../temp/uic

DESTDIR = ../bin

CONFIG += file_copies

# 配置需要复制的文件或目录(支持通配符)
dllcopy.files = $$PWD/../lib/*.so
# 配置需要复制的目标目录, $$OUT_PWD为QMake内置变量，含义为程序输出目录
dllcopy.path = $$PWD/../bin

# 配置COPIES
COPIES += dllcopy

DISTFILES += \
    ../bin/main.qml \
    ../bin/HelloWorldForm.ui.qml \
    ../bin/HelloWorld.qml
